home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Games Collection 1 / software vault.zip / software vault / CDR02 / WW21.ZIP / VGAMAX.TXT < prev    next >
Text File  |  1991-05-22  |  16KB  |  419 lines

  1.  
  2.  
  3.  
  4.  
  5.                                    VGAMAX 2.0
  6.                               by Christopher Antos
  7.  
  8.  
  9.  
  10.  
  11.                                   Introduction
  12.                                   ------------
  13.  
  14.  
  15.         VGAMAX is a TSR utility that intercepts BIOS requests to change
  16.         the video mode or the video font.  VGAMAX will substitute a font
  17.         of your choice for the default ROM fonts that you usually see on
  18.         your screen.  VGAMAX only affects text mode, and does not do
  19.         anything when a graphics request comes in--VGAMAX lets the ROM
  20.         BIOS handle all graphics requests.
  21.  
  22.         VGAMAX has a built-in help screen which lists the valid
  23.         commands.  To see the help screen, type VGAMAX ? at the DOS
  24.         prompt.
  25.  
  26.  
  27.  
  28.  
  29.                                   Using VGAMAX
  30.                                   ============
  31.  
  32.  
  33.  
  34.         First, you must install VGAMAX.  To do this, you must decided
  35.         how many "font banks" you want to have.  A font bank is a chunk
  36.         of memory which VGAMAX uses to store your custom fonts.  You can
  37.         tell VGAMAX to reserve up to 8 font banks, each of which can
  38.         hold a different font.
  39.  
  40.         To make VGAMAX substitute one of your custom fonts for a ROM
  41.         BIOS font, you tell VGAMAX which font bank contains the
  42.         particular custom font you want to use.
  43.  
  44.         The following three sections explain how to install VGAMAX using
  45.         the three different types of memory:  conventional memory, EMS
  46.         memory, and XMS memory.  If you have High RAM and utility that
  47.         lets you use it, you can load VGAMAX into High RAM, too.  See
  48.         your High RAM memory manager manuals for information on how to
  49.         do this.
  50.  
  51.  
  52.                               Conventional Memory
  53.                               -------------------
  54.  
  55.         If you don't have High RAM, EMS memory, or XMS memory, you will
  56.         have to install VGAMAX into conventional memory.  This method of
  57.         installation takes the most memory away from DOS (or High RAM).
  58.         VGAMAX will take 3k for the program code, and 4k per font bank.
  59.  
  60.         To install VGAMAX, use this command:
  61.  
  62.                 VGAMAX /N<z>
  63.  
  64.         where <z> is the number of font banks to reserve.  See the
  65.         section "Features" to find out what you can do with VGAMAX once
  66.         it's installed.
  67.  
  68.  
  69.                                    EMS Memory
  70.                                    ----------
  71.  
  72.         VGAMAX can use EMS memory for its font banks.  This allows
  73.         VGAMAX to only take away 3k from DOS (or use 3k of High RAM).
  74.         However, since EMS memory can only be reserved in 16k chunks,
  75.         VGAMAX will give you either 4 or 8 font banks.  If you request 4
  76.         or fewer, VGAMAX will give you 4.  If you request 5 or more,
  77.         VGAMAX will give you 8.
  78.  
  79.         To use EMS memory, use this command:
  80.  
  81.                 VGAMAX /N<z> /E
  82.  
  83.         where <z> is the number of font banks to reserve.  See the
  84.         section "Features" to find out what you can do with VGAMAX once
  85.         it's installed.
  86.  
  87.  
  88.                                    XMS Memory
  89.                                    ----------
  90.  
  91.         VGAMAX can use XMS memory for its font banks.  If you use XMS
  92.         memory, VGAMAX will take 7k away from DOS (or use 7k of High
  93.         RAM).  The font banks will be in XMS memory, though.  You can
  94.         reserve up to 8 font banks.  Each font bank will take 4k of XMS
  95.         memory.
  96.  
  97.         To use XMS memory, use this command:
  98.  
  99.                 VGAMAX /N<z> /X
  100.  
  101.         where <z> is the number of font banks to reserve.  See the
  102.         section "Features" (below) to find out what you can do with
  103.         VGAMAX once it's installed.
  104.  
  105.  
  106.  
  107.  
  108.                                     Features
  109.                                     ========
  110.  
  111.  
  112.  
  113.         VGAMAX has many options, which are outlined below.  Keep in mind
  114.         that I'm a college student and don't have the time to explain
  115.         each feature in detail.  You'll have to do some experimenting.
  116.         I've done my best to make VGAMAX easy to use and understand,
  117.         though.
  118.  
  119.  
  120.                                  Loading Fonts
  121.                                  -------------
  122.  
  123.         Before you can do anything with fonts, you must load a font into
  124.         a font bank.  Use this command:
  125.  
  126.                 VGAMAX /F<z><fontfile>
  127.  
  128.         where <z> is the number of the bank into which you want to load
  129.         the font in the file <fontfile>.  You can load a different font
  130.         into each font bank VGAMAX has reserved.
  131.  
  132.  
  133.                             Activating a Custom Font
  134.                             ------------------------
  135.  
  136.         Once a font is loaded into a font bank, you can tell VGAMAX to
  137.         activate that font by using this command:
  138.  
  139.                 VGAMAX /F<z>
  140.  
  141.         where <z> is the number of the bank into which you loaded the
  142.         font.
  143.  
  144.  
  145.                          Substituting for the ROM Fonts
  146.                          ------------------------------
  147.  
  148.         VGAMAX can substitute the font of your choice for the 8x8 font
  149.         (used in 50-line and 43-line display modes), the 8x14 font (used
  150.         in 28-line mode on the VGA, or as the default font on the EGA),
  151.         or for the 8x16 font (the default font for VGA cards).
  152.  
  153.         To tell VGAMAX to use a custom font in place of the 8x8 font,
  154.         use this command:
  155.  
  156.                 VGAMAX /A<z>
  157.  
  158.         where <z> is the number of the bank into which you loaded the
  159.         font.  This font will be activated automatically whenever any
  160.         program tries to switch to 50-line mode or 43-line mode.  (Note
  161.         that your custom font doesn't need to be an 8x8 font--it can be
  162.         whatever you want--an 8x16 font, or maybe an 8x7 font to give
  163.         you even MORE lines of text on the screen!)
  164.  
  165.         To tell VGAMAX to use a custom font in place of the 8x14 font,
  166.         use this command (for EGA cards, don't use this command, use the
  167.         next one):
  168.  
  169.                 VGAMAX /B<z>
  170.  
  171.         where <z> is again the bank where the font resides.  This font
  172.         will be used whenever a program tries to activate the ROM 8x14
  173.         font.  (Note that your custom font doesn't need to be an 8x14
  174.         font!)
  175.  
  176.         To tell VGAMAX to use a custom font in place of the default
  177.         system font, use this command:
  178.  
  179.                 VGAMAX /M<z>
  180.  
  181.         where <z> is (you guessed it) the bank where the font resides.
  182.         This font will be used whenever a program switches to normal
  183.         25-line text mode.  (Note that you can use any size font--you
  184.         could use an 8x8 font, for instance, to force the computer to
  185.         always be in 50-line mode!)
  186.  
  187.         To disable any of these font substitutions, use the same letter
  188.         command as you did to enable them, but tell VGAMAX to use bank
  189.         zero.  For example:
  190.  
  191.                 VGAMAX /A0
  192.                 VGAMAX /B0
  193.                 VGAMAX /M0
  194.  
  195.  
  196.                                   VGA Palettes
  197.                                   ------------
  198.  
  199.         If you have a VGA card, you can tell VGAMAX to replace the
  200.         default text mode palette with a custom palette you create.  See
  201.         the section "PMAKE:  The Palette Creator" for information on
  202.         creating palettes.
  203.  
  204.         To load your custom palette into VGAMAX, use the command:
  205.  
  206.                 VGAMAX /P<palettefile>
  207.  
  208.         where <palettefile> is the filename of your custom palette.  Now
  209.         that the palette is loaded, you need to tell VGAMAX to use your
  210.         palette.  To do this, use this command:
  211.  
  212.                 VGAMAX /P
  213.  
  214.         Note that the "/P" command with a filename is very different
  215.         from the "/P" command without a filename.  The former loads a
  216.         custom palette, the latter activates your custom palette.  If
  217.         you want to revert to the default palette, use the command:
  218.  
  219.                 VGAMAX /R
  220.  
  221.  
  222.                                   The Hotkeys
  223.                                   -----------
  224.  
  225.         VGAMAX lets you switch between fonts and palettes at the touch
  226.         of a key, too!
  227.  
  228.         You can press Ctrl-Alt-0 (NOT on the numeric keypad) to cycle
  229.         through the loaded fonts until you find one you like.
  230.  
  231.         To switch to the 8x8 font (the ROM default font, or your custom
  232.         font if you've used the /A option), press Ctrl-Alt-6.
  233.  
  234.         To switch to the 8x14 font (the ROM default font, or your custom
  235.         font if you've used the /B option), press Ctrl-Alt-7.
  236.  
  237.         To switch to the 8x16 font (the ROM default font, or your custom
  238.         font if you've used the /M option), press Ctrl-Alt-8.
  239.         (Pressing Ctrl-Alt-9 will do the same thing).
  240.  
  241.         To switch to your custom palette, press Ctrl-Alt-[ (that's the
  242.         left square bracket, next to the "P" key).
  243.  
  244.         To switch to the default ROM palette, press Ctrl-Alt-] (right
  245.         square bracket).
  246.  
  247.  
  248.                        Changing the Number of Font Banks
  249.                        ---------------------------------
  250.  
  251.         If you are using EMS memory or XMS memory to hold the font
  252.         banks, you can tell VGAMAX to change the number of font banks it
  253.         has reserved.  Just use this command:
  254.  
  255.                 VGAMAX /N<z>
  256.  
  257.         where <z> is the new number of banks.  If this is fewer than the
  258.         number of banks you had previously reserved, VGAMAX will release
  259.         the unneeded banks (thus losing the fonts in them).  If the new
  260.         number of banks is greater than it was before, then VGAMAX will
  261.         make room for more fonts, but will not affect the fonts
  262.         currently loaded.  If the number is the same then nothing
  263.         happens.
  264.  
  265.         If you are using conventional memory, then you will have to
  266.         uninstall VGAMAX and reinstall it to change the number of font
  267.         banks (thereby losing ALL the loaded fonts).
  268.  
  269.  
  270.                               Uninstalling VGAMAX
  271.                               -------------------
  272.  
  273.         To uninstall VGAMAX, first make sure that there are no memory
  274.         resident programs still installed which were installed after
  275.         VGAMAX was.  Then use this command:
  276.  
  277.                 VGAMAX /U
  278.  
  279.  
  280.                                      Hints
  281.                                      -----
  282.  
  283.         The VGAMAX commands have each been explained separately above.
  284.         However, you can mix multiple commands together.  For instance,
  285.         to install VGAMAX, reserve 4 font banks in EMS memory, load a
  286.         font into bank 2, load another into bank 3, activate the font in
  287.         bank 2, load a custom palette, and activate that palette, you
  288.         might use this command:
  289.  
  290.                 VGAMAX /N4/E/F2myfont.a/F3myfont.b/F2/Pmypal/P
  291.  
  292.  
  293.  
  294.  
  295.                                The Font Utilities
  296.                                ==================
  297.  
  298.  
  299.  
  300.                              FED:  The Font Editor
  301.                              ---------------------
  302.  
  303.         FED is a quick and dirty font editor which lets you create and
  304.         modify fonts for VGAMAX (and similar custom font programs).  It
  305.         is fairly self-explanatory, so please just experiment with it
  306.         and figure out how it works on your own.  I'm just a struggling
  307.         student.  I can't fully document everything I do.  My apologies.
  308.  
  309.  
  310.                           GRABFONT:  The Font Grabber
  311.                           ---------------------------
  312.  
  313.         If there's a program that uses a cool font and you'd like to use
  314.         that font yourself, you can use GRABFONT to snag the font for
  315.         use with VGAMAX (and similar custom font programs).
  316.  
  317.         GRABFONT only works from the DOS prompt, so you will have to
  318.         either shell to DOS or hope that your program doesn't switch
  319.         back to the ROM font when it is done.
  320.  
  321.         To grab a font, use this command:
  322.  
  323.                 GRABFONT <fontname>
  324.  
  325.         where <fontname> is a filename you want to save the font under.
  326.  
  327.  
  328.                           PMAKE:  The Palette Creator
  329.                           ---------------------------
  330.  
  331.         PMAKE lets you create VGA palette files for VGAMAX's user
  332.         palette feature.  The input file is an ASCII script file, and
  333.         the output file is a VGAMAX palette file.
  334.  
  335.         The ASCII script file must have 16 lines which describe the 16
  336.         colors you want to use.  Each of these lines must have three
  337.         decimal (base 10) numbers which give the Red, Green, and Blue
  338.         values for the color.  Each individual RGB value can range from
  339.         0 to 63.  The three values must be separated by commas.  An
  340.         example follows:
  341.  
  342.                  0,  0,  0      ;black
  343.                  0,  0, 42      ;blue
  344.                  0, 42,  0      ;green
  345.                  0, 42, 42      ;cyan
  346.                 42,  0,  0      ;red
  347.                 42,  0, 42      ;magenta
  348.                  0, 42, 63      ;brown
  349.                 42, 42, 42      ;gray
  350.                 21, 21, 21      ;dark gray
  351.                  0,  0, 63      ;bright blue
  352.                  0, 63,  0      ;bright green
  353.                  0, 63, 63      ;bright cyan
  354.                 63,  0,  0      ;bright red
  355.                 63,  0, 63      ;bright magenta
  356.                 63, 63,  0      ;bright yellow
  357.                 63, 63, 63      ;bright white
  358.  
  359.         This example defines the default color palette that your VGA
  360.         video card uses (in fact, all the video cards use the same
  361.         default palette, but VGAMAX can only work "palette magic" with
  362.         the VGA card).  The file "USER.ROM" is a good starting point for
  363.         creating your own palette files (it holds the above default
  364.         definitions).
  365.  
  366.         The ASCII script file may contain more than 16 lines, but the
  367.         additional lines must be either blank lines or comment lines.
  368.         Comment lines must begin with a semicolon (;).
  369.  
  370.         PMAKE is used to "compile" the script file into a VGAMAX palette
  371.         file.  To compile a script file, use this command:
  372.  
  373.                 PMAKE <infile> <outfile>
  374.  
  375.         where <infile> is the filename of the ASCII script file and
  376.         <outfile> is the filename of the VGAMAX palette file to produce.
  377.  
  378.  
  379.                                    Donations
  380.                                    ---------
  381.  
  382.         As I mentioned earlier, I'm a struggling student.  This utility
  383.         is a quality utility, with a couple years of use behind it (I
  384.         only recently decided to release it to the public).  It's
  385.         DonationWare.  In other words, if you like it, please send a
  386.         donation of $5 to the US address below.
  387.  
  388.  
  389.                                    Known Bugs
  390.                                    ----------
  391.  
  392.         Since I don't have access to a computer with an EGA or MCGA
  393.         video card, I can't say that VGAMAX will work for sure on them.
  394.         In fact, I think it will encounter some problems, because I
  395.         added some code to VGAMAX to make it figure out if you have an
  396.         EGA or MCGA card and do some things differently than for a VGA.
  397.         These things probably will not work, since currently I have no
  398.         way to debug them.
  399.  
  400.         Other than this shortcoming, VGAMAX should be bug free.  If you
  401.         find or think you may have found a bug, please contact me:
  402.  
  403.                 Internet:       christopher_antos@ub.cc.umich.edu
  404.  
  405.                 US Mail:        Christopher Antos
  406.                                 2115 Windsor Drive
  407.                                 Ann Arbor, MI.  48103
  408.                                 U.S.A.
  409.  
  410.  
  411.                                    Disclaimer
  412.                                    ----------
  413.  
  414.         In the (unlikely) event that anything goes wrong or that VGAMAX
  415.         in some way damages your computer or your data or causes any
  416.         kind of liability to you, I AM NOT RESPONSIBLE IN ANY WAY.
  417.  
  418.         Thank you for trying VGAMAX.  I hope it is useful for you.
  419.